﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace frmPrincipal
{
    public partial class frmPrincipal : Form
    {
        public frmPrincipal()
        {
            InitializeComponent();
        }

        //Chama os respectivos formulários
        private void btnCadastro_Click(object sender, EventArgs e)
        {
            frmCadastroPrincipal cadastros = new frmCadastroPrincipal();

            this.Hide();
            cadastros.ShowDialog();
            this.Show();
        }
        private void btnConsulta_Click(object sender, EventArgs e)
        {
            frmConsultaPrincipal consultas = new frmConsultaPrincipal();

            this.Hide();
            consultas.ShowDialog();
            this.Show();
        }
        private void btnSale_Click(object sender, EventArgs e)
        {
            frmCadSales cadSale = new frmCadSales();

            this.Hide();
            cadSale.ShowDialog();
            this.Show();
        }
        private void btnCompra_Click(object sender, EventArgs e)
        {
            frmCadCompras cadCompra = new frmCadCompras();

            
            this.Hide();
            cadCompra.ShowDialog();
            this.Show();
        }

        //Fecha do programa
        private void btnClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
